package com.example.ioc.controller;

import com.example.ioc.model.UserInfo;
import com.example.ioc.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller("usercon")
public class UserController {

//    @Qualifier("userInfo1")
//    @Autowired
//    private UserInfo user;
//    @Autowired
//    private UserService user;


    @Resource(name = "UCInfo")
    private UserInfo user;
    public void sayHi(){
//        user.doService();
        System.out.println(user);
        System.out.println("hi, user controller...");
    }
}
